<template>
  <div class="search-component flex-center no-drag">
    <input placeholder="搜索" />
    <div class="add-friend flex-center no-drag">
      <i class="iconfont icon-sousuo"></i>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
</script>
<style lang="less" scoped>
.search-component {
  flex-shrink: 0;
  display: flex;
  height: 65px;
  padding: 15px 10px 0;
  background-color: #f7f7f7;
  input {
    flex: 1;
    height: 25px;
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: #e2e2e2;
    padding: 0 10px;
    &:focus {
      background-color: #f9f9f9;
      border: 1px solid #dedcdb;
    }
    &::placeholder {
      font-size: 12px;
    }
  }
  .add-friend {
    margin-left: 10px;
    height: 25px;
    width: 25px;
    border-radius: 5px;
    background-color: #e2e2e2;
    cursor: pointer;
  }
}
</style>
